<template>
  <BasicModal v-bind="$attrs" destroyOnClose title="余额记录" width="55%" :footer="null" @register="registerModal" :destroyOnClose="true">
    <CompanyBalancelogIndex ref="companyBalancelogIndex"></CompanyBalancelogIndex>
  </BasicModal>
</template>
<script lang="ts" setup>
import { getCurrentInstance } from 'vue';
import { BasicModal, useModalInner } from '@apps/antd-admin/src/components/modal';
import CompanyBalancelogIndex from '../../companyBalancelog/index.vue';

const ctx: any = getCurrentInstance();
const [registerModal, { setModalProps }] = useModalInner(async (data) => {
  let record = data.record;
  ctx.refs['companyBalancelogIndex'].setSearchInfoProps(record.companyId);
});
</script>
